package com.androturka.saycolor;

import java.util.Random;

import android.graphics.Color;
import android.util.Log;

public class ColorManager {
    static final String TAG = "ColorManager";
    static final Integer NUMBEROFDEFINECOLOR = 7;
    

	public int getRGB(){
		Log.i(TAG,"Getting The RGB Values");
		return 0;
	}
	
	public int getColor(){
		Log.i(TAG,"Getting Color Value");
		
		getRGB();
		
		return getRandomColorId();		
	}
	
	public int getRandomColorId(){
		Log.i(TAG,"Getting a Random Color Id");

		int randomColor = 0;
		int[] colorArray = {Color.BLACK, Color.WHITE, Color.BLUE, Color.GREEN, Color.RED, Color.YELLOW, Color.GRAY };	
		
		Random randomGenerator = new Random();
	    randomColor = randomGenerator.nextInt(NUMBEROFDEFINECOLOR);
		
	    Log.i(TAG,"Random Color Id is " + randomColor );
	    return colorArray[randomColor];
	}

}
